import { Card } from 'antd'
import { render } from 'react-dom'

import Slardar from '@slardar/sdk'

const $root = document.querySelector('#app')

const App = () => {
  return (
    <div className="app">
      <Card>
        <h1>Slardar SDK</h1>
        <p>Testing by cypress</p>
      </Card>
    </div>
  )
}

render(<App />, $root!)

Slardar('config', {
  bid: 'cypress-test',
  pid: 'main',
  ignoreAjax: ['mcs.snssdk.com'],
  hookFetch: true,
  domain: 'cypress.test',
  report_type: 'xhr',
})
